package com.woniu.liuzhougov.itemAndTask.dao;

import com.woniu.liuzhougov.itemAndTask.pojo.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentMapper {
    int deleteByPrimaryKey(Integer departmentId);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer departmentId);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    List<Department> listAllDepartments();

    Department getLeaderId(Integer departmentId);

    List<Department> listDepartments(@Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    int countByDepartmentName(Department department);
}